<!DOCTYPE html>

<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>宠物医院</title>
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
    <link th:href="@{/img/pet2.jpg}" rel="shortcut icon">
</head>
<body>
<!--顶部导航栏-->
<div th:replace="~{comment/comment::topbar}"></div>
<div class="container-fluid">
    <div class="row">
        <!--侧边导航栏-->
        <div th:replace="~{comment/comment::sidebar(active='doctor/medical.html')}"></div>
        <!--主视图-->
        <main role="main" class="col-md-9 ml-sm-auto col-lg-11 pt-3 px-4">
            <!--表单-->
            <form th:action="@{/medical}" method="post">
                <input type="hidden" name="pId" th:value="${pet.getpId()}">
                <div class="form-group">
                    <label>姓名</label>
                    <input type="text" readonly="readonly" class="form-control" name="pName" th:value="${pet.getpName()}">
                </div>
                <div class="form-group">
                    <label>病情</label>
                    <input type="text" readonly="readonly" class="form-control" name="illness" th:value="${pet.getIllness()}">
                </div>
                <div class="form-group">
                    <label>科室</label>
                    <input type="text" readonly="readonly" class="form-control" name="pSickroom" th:value="${pet.getpSickroom()}">
                </div>
                <div class="form-group">
                    <label>主治医生</label>
                    <input type="text" readonly="readonly" class="form-control" name="pDoctor" th:value="${pet.getpDoctor()}">
                </div>
                <div class="form-group">
                    <label>治疗方式</label>
                    <select class="form-control" name="treatment">
                        <option th:each="m:${medicals}" th:text="${m.getMName()}" th:value="${m.getMName()}"
                                th:selected="${m.getMName()==pet.getTreatment()}"></option>
                    </select>
                </div>
                <button type="submit" class="btn btn-primary">执行</button>
            </form>
        </main>
    </div>
</div>
</body>
</html>